package cn.wolfcode.trip.base.mapper;

import cn.wolfcode.trip.base.domain.Likes;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface LikesMapper {
    int deleteByPrimaryKey(Long id);

    int insert(Likes record);

    Likes selectByPrimaryKey(Long id);

    List<Likes> selectAll();
    List<Likes> selectLikesByUserId(Long id);

    int updateByPrimaryKey(Likes record);

    Integer  selectUnRead(Long id);

    void changeState(Long travelId);


    Likes selectState(@Param("userId") Long userId, @Param("contentId") Long contentId);


    void deleteByP2Id(@Param("userId") Long userId, @Param("contentId") Long contentId);
}